package com.ymttest.database.sqlwapper.CouponShop2cn;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.CouponShop2cn.couponbatchext;
import com.ymttest.utils.EnvSetup;

public class couponbatchextWapper {
	SqlManager manager;

    public couponbatchextWapper() {
        manager = new SqlManager("mysqlcouponshop2cn" + EnvSetup.getEnv());
    }

    public  couponbatchext selectByPrimaryKey(Integer BatchId){
    	couponbatchext couponbatchext=new couponbatchext();
    	List<couponbatchext> results = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.CouponShop2cn.couponbatchextMapper.selectByPrimaryKey",
                        BatchId);
    	if(results.size()>0)
    	{
    		couponbatchext=results.get(0);
    	}
        manager.commit();
        return couponbatchext;
    }

  
    public static void main(String[] args) {
    	couponbatchextWapper test = new couponbatchextWapper();

        System.out.println(test.selectByPrimaryKey(10002310));
        // test.insertYmtCouponSetting(3,11);
        // Logger.debug(test.getLastYmtCouponSettingId());


    }
}
